//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Example #7—Primitive Data Types
// CS 151, 6 Apr 2009
// ECC, Spring 2009
// Niko Culevski
// Program to show values of primitive types
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public class PrintTypes
{
    public static void main(String[] args)
    {
        boolean b = false;
        char c = 'R';
        byte j = 127;
        short k = 32767;
        int m = 2147483647;
        long n = 9223372036854775807L;    // 'L' is for "long"
        // 'F' is for "float", compilation error without ‘F’
        float x = 3.14159265F;
        double y = 3.141592653589793238;
        System.out.println("b = " + b);
        System.out.println("c = " + c);
        System.out.println("j = " + j);
        System.out.println("k = " + k);
        System.out.println("m = " + m);
        System.out.println("n = " + n);
        System.out.println("x = " + x);
        System.out.println("y = " + y);
    }
}
